/**************************************************************************
 * @file battery_left_handle.h
 * @author BryanHe(贺璧) (532352406@qq.com)
 * @brief 
 * @version 0.1
 * @date 2024-11-11
 * 
 * @copyright Copyright (c) 2024
 * 
 *************************************************************************/

#ifndef BATTERY_LEFT_HANDLE__H_H
#define BATTERY_LEFT_HANDLE__H_H
#include<stdint.h>
#include<stdio.h>

#ifdef __cplusplus
extern "C"{
#endif

#include <stdio.h>
#include "at32f421_ertc.h"
#include "usr_app_common_inc.h"

typedef struct battLeft_data{
    mo_u32 time;
    mo_u32 curr_A;
    mo_u32 curr_mA;
    mo_u32 curr_uA;

    mo_u32 power_W;
    mo_u32 power_mW;
    mo_u32 power_uW;
    mo_u32 power_nW;

}BattLeftDataT;


typedef struct batLeftDisInfor_dat{
    mo_u8 curr_inf_str[10];
    mo_u8 curr_inf_str_low[10];
    mo_u8 power_inf_str[10];
    mo_u8 power_inf_str_low[10];
    mo_u8 time_inf_str[10];
}BatLeftDisInfDatT;


void clear_battLeftRecordInfor(void);
void usr_BatteryLeft_handle(mo_u32 out_vol/*mV*/,mo_u32 out_curr,/*uA*/OUT_CTRL_T out_state);
void main_app_bat_left_infor_sync_and_update_ui(void);

#ifdef __cplusplus
}
#endif

#endif //BATTERY_LEFT_HANDLE__H_H


